﻿<%@ Page Language="C#" AutoEventWireup="false" CodeBehind="managemenubackupfile.aspx.cs"
    Inherits="Rmlife.Web.managemenubackupfile" MasterPageFile="~/mContentContainer.Master" Title="菜单管理" %>

<%@ Register TagPrefix="cc1" Namespace="Rmlife.Control" Assembly="Rmlife.Control" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <script type="text/javascript">
        function Check(form)
        {
            CheckAll(form);
            checkedEnabledButton(form,'backupname','Delbackupfile');
        }
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlace" runat="server">
    <asp:Panel runat="server" ID="panel">
        <cc1:DataGrid ID="DataGrid1" runat="server">
            <Columns>
                <asp:TemplateColumn HeaderText="<input title='选中/取消' onclick='Check(this.form)' type='checkbox' name='chkall' id='chkall' />">
                    <HeaderStyle Width="20px" />
                    <ItemTemplate>
                        <input id="backupname" onclick="checkedEnabledButton(this.form,'backupname','Delbackupfile')"
                            type="checkbox" value="<%# DataBinder.Eval(Container, "DataItem.backupname").ToString() %>"
                            name="backupname" />
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:BoundColumn DataField="backupdate" HeaderText="备份日期"></asp:BoundColumn>
                <asp:TemplateColumn HeaderText="操作">
                    <ItemTemplate>
                        <a href="managemenubackupfile.aspx?filename=<%# DataBinder.Eval(Container, "DataItem.backupname").ToString() %>"
                            onclick='return confirm("您确认要将 <%# DataBinder.Eval(Container, "DataItem.backupdate").ToString() %> 的备份菜单恢复吗？\n\t注意：恢复将覆盖当前使用中的菜单！");'>
                            恢复此备份</a>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </cc1:DataGrid>
        <p style="text-align: right;">
            <cc1:Button ID="backupfile" runat="server" Text="备 份" ButtonImgUrl="../images/zip.gif"
                OnClick="backupfile_Click"></cc1:Button>&nbsp;&nbsp;
            <cc1:Button ID="Delbackupfile" runat="server" Text="删 除" ButtonImgUrl="../images/del.gif"
                OnClick="Delbackupfile_Click" Enabled="false"></cc1:Button>&nbsp;&nbsp;
            <button type="button" class="ManagerButton" id="Button3" onclick="window.location='managemainmenu.aspx';">
                <img src="../images/arrow_undo.gif" />
                返 回</button>
        </p>
    </asp:Panel>
    <asp:Label ID="msg" runat="server" CssClass="msg"></asp:Label>
</asp:Content>
